package cemp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName stock_scrapy_ths_gn
 */
@TableName(value ="stock_scrapy_ths_gn")
@AllArgsConstructor
@NoArgsConstructor
public class StockScrapyThsGn implements Serializable {
    private String gnCode;

    private String completed;

    private static final long serialVersionUID = 1L;

    public String getGnCode() {
        return gnCode;
    }

    public void setGnCode(String gnCode) {
        this.gnCode = gnCode;
    }

    public String getCompleted() {
        return completed;
    }

    public void setCompleted(String completed) {
        this.completed = completed;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StockScrapyThsGn other = (StockScrapyThsGn) that;
        return (this.getGnCode() == null ? other.getGnCode() == null : this.getGnCode().equals(other.getGnCode()))
            && (this.getCompleted() == null ? other.getCompleted() == null : this.getCompleted().equals(other.getCompleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGnCode() == null) ? 0 : getGnCode().hashCode());
        result = prime * result + ((getCompleted() == null) ? 0 : getCompleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gnCode=").append(gnCode);
        sb.append(", completed=").append(completed);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
